const Minio = require('minio')

const minioClient = new Minio.Client({
    endPoint: '117.83.111.19',
    port: 9000,
    useSSL: false,
    accessKey: 'minioadmin',
    secretKey: 'minioadmin'
});

minioClient.makeBucket('sdk-demo', 'us-east-1', function(err) {
    if (err) return console.log(err)
})
// const file = 'C:\\IDE\\测试04.bpmn20.xml'
// const metaData = {
//     'Content-Type': 'application/xml',
// }
// minioClient.fPutObject('demo', '测试04.bpmn20.xml', file, metaData, function (err, etag) {
//     if (err) return console.log(err)
//     console.log('File uploaded successfully.', etag)
// });
